/*
 * boot.c
 *
 *  Created on: Sep 19, 2013
 *      Author: Ken Arok
 */


#include "delay.h"
#include "display.h"
#include "buzzer.h"
#include "key.h"
#include "io.h"
#include "inter_chip.h"
#include "boot.h"

void vSystemBoot(void)
{
	const char _string1[] = "Booting";
	const char _dot = '.';
	uint8_t y;

	/* Load device drivers. */
	vInitDisplay();
	vBuzzerSwitch(iON, 0);
	vBuzzerSwitch(iOFF, 2);
	vTurnBackLightDisplay(iOFF, 25);
	vInitKey();
	vIO_Init();
	vADO_InterChipInit();
	vPrintDisplay(1, 1, _string1);
	y = 8;
	do {
		vPutDisplay(1, y, _dot);
		y++;
		delay_ms(300);
	}while(y < 20);

}
